<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
<link rel="Stylesheet" type="text/css" href="../cludg.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>
define-crud</title>
</head>
<body>
<div id="navbar">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<colgroup span="3">
<col width="0*"/>
<col width="0*"/>
<col width="1*"/>
</colgroup>
<tr>
<td align="left" valign="baseline">
<a href="db-adapter.html">
Prev:&nbsp;db-adapter</a>
<br/>
<a href="macros.html">
Next:&nbsp;macros</a>
</td>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td align="left" valign="baseline">
<span class="upchain">
<b>
define-crud</b>
<br/>
<a href="../index.html">
Index</a>
</span>
&nbsp;&nbsp;&nbsp;&nbsp;</td>
</tr>
</table>
</div>
<div class="cludg-doc-body">
<h2>
define-crud
</h2>
<table style="width: 100%;" class="summary-table">
<tr class="table-heading-color">
<th class="summary" colspan="2">
Class summary</th>
</tr>
<tr class="table-row-color">
<td class="summary-name">
<a href="define-crud.html#_g5243">
crud</a>
</td>
<td class="summary">
</td>
</tr>
</table>
<table style="width: 100%;" class="summary-table">
<tr class="table-heading-color">
<th class="summary" colspan="2">
Method summary</th>
</tr>
<tr class="table-row-color">
<td class="summary-name">
<a href="define-crud.html#_g5269">
get-crud-symbol</a>
</td>
<td class="summary">
crud-or-item keyword</td>
</tr>
<tr class="table-row-color">
<td class="summary-name">
<a href="define-crud.html#_g5293">
write-crud-forms</a>
</td>
<td class="summary">
crud crud-subclass-name stream package tables fields</td>
</tr>
<tr class="table-row-color">
<td class="summary-name">
<a href="define-crud.html#_g5295">
write-crud-forms-to-file</a>
</td>
<td class="summary">
crud file class-name package-name</td>
</tr>
</table>
<div class="defclass">
<div class="defunsignatures">
<a id="_g5243">
</a>
<table cellpadding="0" cellspacing="0" width="100%">
<colgroup span="3">
<col width="0*"/>
<col width="1*"/>
<col width="0*"/>
</colgroup>
<tbody>
<tr>
<td class="symbol-name">
crud&nbsp;&nbsp;</td>
<td class="lambda-list">
</td>
<td class="symbol-type">
&nbsp;[Class]</td>
</tr>
</tbody>
</table>
</div>
<div class="defclass-initargs">
<div>
<div>
<table cellpadding="0" cellspacing="0" width="100%">
<colgroup span="3">
<col width="0*"/>
<col width="1*"/>
<col width="0*"/>
</colgroup>
<tbody>
<tr>
<td class="symbol-name">
:db-adapter&nbsp;&nbsp;</td>
<td class="lambda-list">
</td>
<td class="symbol-type">
&nbsp;[Initarg]</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="defclass-slots-doc">
</div>
<div class="defclass-generics">
</div>
</div>
<div class="defun">
<div class="defunsignatures">
<a id="_g5269">
</a>
<table cellpadding="0" cellspacing="0" width="100%">
<colgroup span="3">
<col width="0*"/>
<col width="1*"/>
<col width="0*"/>
</colgroup>
<tbody>
<tr>
<td class="symbol-name">
get-crud-symbol&nbsp;&nbsp;</td>
<td class="lambda-list">
crud-or-item keyword</td>
<td class="symbol-type">
&nbsp;[Generic&nbsp;function]</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="defun">
<div class="defunsignatures">
<a id="_g5293">
</a>
<table cellpadding="0" cellspacing="0" width="100%">
<colgroup span="3">
<col width="0*"/>
<col width="1*"/>
<col width="0*"/>
</colgroup>
<tbody>
<tr>
<td class="symbol-name">
write-crud-forms&nbsp;&nbsp;</td>
<td class="lambda-list">
crud crud-subclass-name stream package tables fields</td>
<td class="symbol-type">
&nbsp;[Generic&nbsp;function]</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="defun">
<div class="defunsignatures">
<a id="_g5295">
</a>
<table cellpadding="0" cellspacing="0" width="100%">
<colgroup span="3">
<col width="0*"/>
<col width="1*"/>
<col width="0*"/>
</colgroup>
<tbody>
<tr>
<td class="symbol-name">
write-crud-forms-to-file&nbsp;&nbsp;</td>
<td class="lambda-list">
crud file class-name package-name</td>
<td class="symbol-type">
&nbsp;[Method]</td>
</tr>
</tbody>
</table>
</div>
<div class="doc-body">
<p>
Generates a crud source file named FILE from the database pointed to 
 by CRUD. The crud class will be called CLASS-NAME and generated code 
 will go into the package PACKAGE-NAME. 
 </p>
<p>
A standard class will be generated for each database table, with slots 
 corresponding to fields in the table. Accessors will also be 
 generated. It is required that each table contain a primary integer 
 key field named 'id'. 
 </p>
</div>
</div>
</div>
<div class="cludg-footer">
Generated by&nbsp;<a href="mailto:ihatchondo@common-lisp.net" lang="en">
CLDOC</a>
- 2009-11-30 22:56:15</div>
</body>
</html>
